import { Component, ChangeDetectionStrategy, OnInit, ElementRef, Input } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';

@Component({
  selector: 'el-button-group',
  templateUrl: './buttons-group.component.html',
  styleUrls: ['../theme/button.css'],
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ButtonsGroupComponent implements OnInit {

  private el:any;
  private sanitizer:any;
  @Input('class') nativeClass: string = ' ';

  constructor(sanitizer: DomSanitizer, el: ElementRef) {
    this.sanitizer = sanitizer;
    this.el = el;
    this.nativeClass += this.el.nativeElement.classList.value;
   }

  ngOnInit(): void {
  }

}
